<?php
class Config{
	private static $_self;
	private $_configs = array();
	public static function single(){
		if(self::$_self instanceof Config){
			return self::$_self;
		}else{
			self::$_self = new Config;
		}
		return self::$_self;
	}
	private function __construct(){
		
	}
	public function loadConfig($env){
		include APP_DIR."Config/Config".($env ? ".".$env : "").".php";
		$this->_configs = $AppConfig;
		return $this;
	}
	public function getDbConfig($name){
		
	}
	public function getGroups(){
		return array_keys($this->_configs['Groups']);
	}
	public function getDefaultGroup(){
		return $this->_configs['DefaultGroup'];
	}
	
}
